/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.google.code.netbuilder.dal.xmlaccess;

import com.google.code.netbuilder.dal.entities.Port;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Андрей
 */

@XmlType(name = "ports")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ports")
class PortAccessList implements IAccessList
{
    private ArrayList<Port> port;
    
    private PortAccessList()
    {}
    
    public PortAccessList(ArrayList<Port> ports)
    {
        port = ports;
    }
    
    @Override
    public ArrayList<Port> getList()
    {
        return port;
    }
}
